5f306534f52e7e016c8b040663aa986a2841dd35,applications/accounting/src/org/ofbiz/accounting/payment/PaymentMethodServices.java,PaymentMethodServices,updateEftAccount,#DispatchContext#Map#,771

Before Change


            GenericValue tempVal = null;

            try {
                List<GenericValue> allPCMPs = EntityUtil.filterByDate(delegator.findByAnd("PartyContactMechPurpose",
                        UtilMisc.toMap("partyId", partyId, "contactMechId", contactMechId, 
                                "contactMechPurposeTypeId",contactMechPurposeTypeId), null, false), true);
                tempVal = EntityUtil.getFirst(allPCMPs);
            } catch (GenericEntityException e) {
                Debug.logWarning(e.getMessage(), module);

After Change


            GenericValue tempVal = null;

            try {
                List<GenericValue> allPCWPs = delegator.findByAnd("PartyContactWithPurpose",
                        UtilMisc.toMap("partyId", partyId, "contactMechId", contactMechId, "contactMechPurposeTypeId", contactMechPurposeTypeId), null, false);
                allPCWPs = EntityUtil.filterByDate(allPCWPs, null, "contactFromDate", "contactThruDate", true);
                allPCWPs = EntityUtil.filterByDate(allPCWPs, null, "purposeFromDate", "purposeThruDate", true);
                tempVal = EntityUtil.getFirst(allPCWPs);
            } catch (GenericEntityException e) {
                Debug.logWarning(e.getMessage(), module);